package com.example.wan_android.adapter

import com.example.wan_android.BR
import com.example.wan_android.R
import com.example.wan_android.core.CoreViewHolder
import com.example.wan_android.databinding.AdapterProjectContentBinding
import com.example.wan_android.http.bean.ProjectContentsData
import com.example.wan_android.viewmodel.ProjectViewModel

class ProjectContentAdapter(vm: ProjectViewModel) :
    CoreAdapter<AdapterProjectContentBinding, ProjectViewModel, ProjectContentsData>(
        BR.data,
        BR.viewModel,
        vm
    ) {
    override fun getItemLayoutId(viewType: Int): Int {
        return R.layout.adapter_project_content
    }

    override fun onBindViewHolder(holder: CoreViewHolder, position: Int) {
        super.onBindViewHolder(holder, position)
//        if (mListData[position].envelopePic.isNotEmpty()) {
//            Glide.with(holder.itemView.context)
//                .load(mListData[position].envelopePic)
//                .into(holder.binding.root.findViewById<ImageView>(R.id.iv_project_src))
//        }
    }
}